<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.util.collection.model.MapView</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.util.collection.model.MapView");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461">tango.util.collection.model.MapView</a></h1>
                
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>interface <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L34">MapView</a></span>
<script>explorer.outline.addDecl('MapView');</script>(K, V) : View!(V);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Maps maintain keyed elements. Any kind of Object 
 may serve as a key for an element.</font><br><br>
<b>author:</b><br>Doug Lea
 @version 0.93<br><br> <P> For an introduction to this package see <A HREF="index.html"> Overview </A>.<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L41">allowsKey</a></span>
<script>explorer.outline.addDecl('allowsKey');</script>(K <span class="funcparam">key</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Report whether the MapT COULD include k as a key
 Always returns false if k is null
</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L48">containsKey</a></span>
<script>explorer.outline.addDecl('containsKey');</script>(K <span class="funcparam">key</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Report whether there exists any element with Key key.
 </font><br><br>
<b>Returns:</b><br>
true if there is such an element<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L55">containsPair</a></span>
<script>explorer.outline.addDecl('containsPair');</script>(K <span class="funcparam">key</span>, V <span class="funcparam">value</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Report whether there exists a &#40;key, value&#41; pair
 </font><br><br>
<b>Returns:</b><br>
true if there is such an element<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>PairIterator!(K, V) <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L73">keys</a></span>
<script>explorer.outline.addDecl('keys');</script>(); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return an enumeration that may be used to traverse through
 the keys &#40;not elements&#41; of the collection. The corresponding
 elements can be looked at by using at&#40;k&#41; for each key k. For example:
 <PRE>
 Iterator keys = amap.keys&#40;&#41;;
 while &#40;keys.more&#40;&#41;&#41; {
   K key = keys.get&#40;&#41;;
   T value = amap.get&#40;key&#41;
 // ...
 }
 </PRE>
 </font><br><br>
<b>Returns:</b><br>
the enumeration<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>int <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L80">opApply</a></span>
<script>explorer.outline.addDecl('opApply');</script>(int delegate (inout K key, inout V value) <span class="funcparam">dg</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">traverse the collection content. This is cheaper than using an
         iterator since there is no creation cost involved.
</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>V <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L89">get</a></span>
<script>explorer.outline.addDecl('get');</script>(K <span class="funcparam">key</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return the element associated with Key key. 
 @param key a key
 </font><br><br>
<b>Returns:</b><br>
element such that contains&#40;key, element&#41;<br><br>
<b>Throws:</b><br>
NoSuchElementException if !containsKey&#40;key&#41;<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L98">get</a></span>
<script>explorer.outline.addDecl('get');</script>(K <span class="funcparam">key</span>, inout V <span class="funcparam">element</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return the element associated with Key key. 
 @param key a key
 </font><br><br>
<b>Returns:</b><br>
whether the key is contained or not<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/MapView.d?rev=3461#L110">keyOf</a></span>
<script>explorer.outline.addDecl('keyOf');</script>(inout K <span class="funcparam">key</span>, V <span class="funcparam">value</span>); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return a key associated with element. There may be any
 number of keys associated with any element, but this returns only
 one of them &#40;any arbitrary one&#41;, or false if no such key exists.
 @param key, a place to return a located key
 @param element, a value to try to find a key for.
 </font><br><br>
<b>Returns:</b><br>
true where value is found; false otherwise<br><br></dd></dl></dd></dl></td></tr>
                <tr><td id="docfooter">
                         :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sun Jun  8 17:12:54 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>